home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / harvestc.sit / Harvest C Folder / Examples / Sample2b.c < prev   
MacBinary  |  1991-10-10  |  1.4 KB  |  [TEXT/ALFA]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Oct 10 13:04:59 1991, modified Thu Oct 10 13:04:59 1991, creator Alpha editor, type ASCII, 662 bytes "Sample2b.c" , at 0x316 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ALFA]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 61 6d 70 6c 65 | 32 62 2e 63 00 00 00 00 |..Sample|2b.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......|
|00000050| 00 00 00 00 00 02 96 00 | 00 01 ac a5 1a 38 bb a5 |........|.....8..|
|00000060| 1a 38 bb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.8......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d7 a3 00 00 |........|........|
|00000080| 2f 2a 0d 09 53 61 6d 70 | 6c 65 20 61 70 70 6c 69 |/*..Samp|le appli|
|00000090| 63 61 74 69 6f 6e 2c 20 | 62 61 73 65 64 20 6f 6e |cation, |based on|
|000000a0| 20 54 72 61 6e 73 53 6b | 65 6c 0d 20 20 2a 0d 20 | TransSk|el. *. |
|000000b0| 20 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 4d | */..#in|clude <M|
|000000c0| 65 6e 75 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |enus.h>.|#include|
|000000d0| 20 3c 4f 53 55 74 69 6c | 73 2e 68 3e 0d 23 69 6e | <OSUtil|s.h>.#in|
|000000e0| 63 6c 75 64 65 20 22 53 | 61 6d 70 6c 65 32 61 2e |clude "S|ample2a.|
|000000f0| 68 22 0d 0d 4d 65 6e 75 | 48 61 6e 64 6c 65 20 20 |h"..Menu|Handle |
|00000100| 20 20 20 20 66 69 6c 65 | 4d 65 6e 75 3b 0d 20 2f | file|Menu;. /|
|00000110| 2a 0d 20 20 2a 20 46 69 | 6c 65 20 6d 65 6e 75 20 |*. * Fi|le menu |
|00000120| 68 61 6e 64 6c 65 72 0d | 20 20 2a 2f 0d 0d 76 6f |handler.| */..vo|
|00000130| 69 64 0d 44 6f 46 69 6c | 65 4d 65 6e 75 28 69 74 |id.DoFil|eMenu(it|
|00000140| 65 6d 29 0d 20 20 73 68 | 6f 72 74 20 20 20 20 20 |em). sh|ort |
|00000150| 20 20 20 20 20 20 69 74 | 65 6d 3b 0d 7b 0d 20 20 | it|em;.{. |
|00000160| 73 77 69 74 63 68 20 28 | 69 74 65 6d 29 20 7b 0d |switch (|item) {.|
|00000170| 20 20 63 61 73 65 20 31 | 3a 0d 20 20 20 20 20 20 | case 1|:. |
|00000180| 53 6b 65 6c 57 68 6f 61 | 28 29 3b 0d 20 20 20 20 |SkelWhoa|();. |
|00000190| 62 72 65 61 6b 3b 0d 0d | 20 20 7d 0d 7d 0d 0d 0d |break;..| }.}...|
|000001a0| 20 2f 2a 0d 20 20 2a 20 | 48 61 6e 64 6c 65 20 73 | /*. * |Handle s|
|000001b0| 65 6c 65 63 74 69 6f 6e | 20 6f 66 20 41 62 6f 75 |election| of Abou|
|000001c0| 74 20 69 74 65 6d 20 66 | 72 6f 6d 20 41 70 70 6c |t item f|rom Appl|
|000001d0| 65 20 6d 65 6e 75 0d 20 | 20 2a 2f 0d 0d 76 6f 69 |e menu. | */..voi|
|000001e0| 64 0d 44 6f 41 62 6f 75 | 74 28 76 6f 69 64 29 0d |d.DoAbou|t(void).|
|000001f0| 7b 0d 20 20 53 79 73 42 | 65 65 70 28 31 29 3b 0d |{. SysB|eep(1);.|
|00000200| 7d 0d 0d 0d 69 6e 74 0d | 6d 61 69 6e 28 29 0d 7b |}...int.|main().{|
|00000210| 0d 20 20 44 65 62 75 67 | 67 65 72 28 29 3b 0d 20 |. Debug|ger();. |
|00000220| 20 53 6b 65 6c 49 6e 69 | 74 28 4e 55 4c 4c 2c 20 | SkelIni|t(NULL, |
|00000230| 31 29 3b 0d 0d 20 20 53 | 6b 65 6c 41 70 70 6c 65 |1);.. S|kelApple|
|00000240| 28 22 5c 70 41 62 6f 75 | 74 20 53 61 6d 70 6c 65 |("\pAbou|t Sample|
|00000250| 32 2e 2e 2e 62 65 65 70 | 2e 2e 2e 22 2c 20 44 6f |2...beep|...", Do|
|00000260| 41 62 6f 75 74 29 3b 0d | 0d 20 20 66 69 6c 65 4d |About);.|. fileM|
|00000270| 65 6e 75 20 3d 20 4e 65 | 77 4d 65 6e 75 28 31 30 |enu = Ne|wMenu(10|
|00000280| 30 30 2c 20 22 5c 70 46 | 69 6c 65 22 29 3b 0d 20 |00, "\pF|ile");. |
|00000290| 20 41 70 70 65 6e 64 4d | 65 6e 75 28 66 69 6c 65 | AppendM|enu(file|
|000002a0| 4d 65 6e 75 2c 20 22 5c | 70 51 75 69 74 2f 51 22 |Menu, "\|pQuit/Q"|
|000002b0| 29 3b 0d 20 20 53 6b 65 | 6c 4d 65 6e 75 28 66 69 |);. Ske|lMenu(fi|
|000002c0| 6c 65 4d 65 6e 75 2c 20 | 44 6f 46 69 6c 65 4d 65 |leMenu, |DoFileMe|
|000002d0| 6e 75 2c 20 4e 55 4c 4c | 2c 20 66 61 6c 73 65 2c |nu, NULL|, false,|
|000002e0| 74 72 75 65 29 3b 0d 0d | 20 20 53 6b 65 6c 4d 61 |true);..| SkelMa|
|000002f0| 69 6e 28 29 3b 0d 20 20 | 53 6b 65 6c 43 6c 6f 62 |in();. |SkelClob|
|00000300| 62 65 72 28 29 3b 0d 20 | 20 72 65 74 75 72 6e 20 |ber();. | return |
|00000310| 30 3b 0d 7d 0d 0d 00 00 | 00 00 00 00 00 00 00 00 |0;.}....|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000390| 00 00 83 f6 07 50 43 20 | 49 63 6f 6e 02 00 00 00 |.....PC |Icon....|
|000003a0| 54 45 58 54 54 4f 50 43 | 21 00 01 c0 00 00 00 00 |TEXTTOPC|!.......|
|000003b0| 0a 53 61 6d 70 6c 65 32 | 62 2e 63 00 02 00 00 00 |.Sample2|b.c.....|
|000003c0| 54 45 58 54 41 4c 46 41 | 01 00 ff ff ff ff 00 00 |TEXTALFA|........|
|000003d0| 00 00 54 45 58 54 41 4c | 46 41 01 00 ff ff ff ff |..TEXTAL|FA......|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 a5 19 ea 72 00 00 | 02 96 00 00 01 ac 00 00 |.....r..|........|
|00000400| 00 00 11 00 00 00 83 f6 | 0b 50 72 65 66 65 72 65 |........|.Prefere|
|00000410| 6e 63 65 73 01 00 00 00 | 00 08 00 00 84 35 a3 4a |nces....|.....5.J|
|00000420| 0b 3f a5 06 11 97 00 00 | 00 00 00 7a 00 2c 01 36 |.?......|...z.,.6|
|00000430| 01 c0 01 00 01 80 00 40 | 01 00 ff f8 ff f0 00 00 |.......@|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 15 00 00 00 83 f6 |........|........|
|00000460| 0f 50 72 65 74 74 79 43 | 20 4f 70 74 69 6f 6e 73 |.PrettyC| Options|
|00000470| 02 00 00 00 43 6f 70 74 | 6e 69 43 65 01 00 01 40 |....Copt|niCe...@|
|00000480| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 23 69 6e |...H..Mo|naco.#in|
|00000490| 63 6c 75 64 65 20 3c 4d | 65 6e 75 73 2e 68 3e 0d |clude <M|enus.h>.|
|000004a0| 23 69 6e 63 6c 75 00 06 | 00 04 00 2a 00 03 03 63 |#inclu..|...*...c|
|000004b0| 02 7d 00 64 00 1c 01 53 | 01 bd a5 1a 00 7b 00 00 |.}.d...S|.....{..|
|000004c0| 01 9e 00 00 01 9e 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|000004d0| 00 2a 00 03 03 63 02 7d | 00 64 00 1c 01 53 01 bd |.*...c.}|.d...S..|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 13 |.....n..|.n...>..|
|00000500| 62 18 07 b8 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |b.......|.>..MPSR|
|00000510| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 03 f0 ff ff 00 00 00 4c | 00 15 62 40 00 00 00 00 |.......L|..b@....|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+